<?php
defined('JPATH_PLATFORM') or die;
if(!defined('COM_MEDIA_BASE')){
    $params = JComponentHelper::getParams('com_media');
    $file_path = 'file_path';
    define('COM_MEDIA_BASE',    JPATH_ROOT . '/' . $params->get($file_path, 'images'));
}
?>
